package demo3;

public class char7 {
    public static void main(String[] args) {
        String talk="玩的真好，SB吧，MB别玩了别玩了";
        String[]arr={"CNM","SB","GUN","MB"};
        for (int i = 0; i < arr.length; i++) {
            talk= talk.replace(arr[i],"***");
        }

        System.out.println(talk);
    }
}
